package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@Data
public class MallOrderAddDTO {

    @NotNull(message = "商品Id不能为空")
    private Long productId;

    @Length(max = 200, message = "规格属性字符数不能超过200")
    private String attrValue;

    @Length(max = 255, message = "备注字符数不能超过255")
    private String remark;

    private Integer quantity = 1;

    @NotNull(message = "收货信息没有选择")
    private Long addressId;
}
